<%@ page import="com.dealinga.shared.*" %>
<%@ page import="java.util.*" %>


<%! 
	List<Place> places = new ArrayList<Place>();
	Place place = new Place();

%>

<%
	if (places.size() < 1 ) {
		
		place.id = 1L;
		place.title = "PRAGUE";
		place.url = "./place/prague";
		places.add(place);
		
		place.id = 2L;
		place.title = "LONDON";
		place.url = "./place/london";
		places.add(place);
	}


 %>


<h2 slider-id="places"><a class="more" href="./places">more places</a>  

	<% for (Place place : places) { %>
	<a class="slidePager" href="<%= place.url %>" slide-index="<%= places.indexOf(place) %>"><%= place.title %></a> 
	<% } %>

<a href="./places"><img alt="" src="./dealinga_files/places.png" height="31" width="108"></a>

</h2>

<div class="bx-wrapper" style="width:950px; position:relative;">
<div class="bx-window" style="position:relative; overflow:hidden; width:950px;">
<ul id="places" class="slider-box" style="width: 999999px; position: relative; left: -950px; ">


	<% for (Place place : places) { %>
	<li style="width: 950px; float: left; list-style-type: none; list-style-position: initial; list-style-image: initial; ">
		<a href="<%= place.url %>">
			<img class="big" alt="" src="<%= place.image %>">
		</a>
		
		<jsp:include page="Place.jsp">
			<jsp:param name="id" value="<%= place.id %>"/>
		</jsp:include>
		
		<p><a class="more" href="<%= place.url %>">Show all <%= place.countDeal %> deals from <%= place.title %></a></p>  	
	</li>
	<% } %>
  
</ul>

</div>
</div>
